package com.bookseek.xreader.po;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

/***
 * 阅读历史记录位置
 */
@Entity(nameInDb = "t_his")
public class THisPo {
    @Id(autoincrement = true)
    @Property(nameInDb = "id")
    @Unique
    public Long id;//主键id
    @Index(name = "t_his_bid_idx")
    public Long bid;//bookid
    @Index(name = "t_his_cid_idx")
    public Long cid;//章节id
    public String cname;//章节标题
    public String bname;//书名
    public String bauthor;//作者
    public String bchao;//朝代
    @Index(name = "t_his_tm_idx")
    public Long tm;//阅读时间
    public Integer pindex;//正文段落
    public Integer pstart;//起始索引
    public Integer pend;//结束索引
    @Index(name = "t_his_ptype_idx")
    public Integer ptype;//类型 1=诗词 2=典籍
    @Generated(hash = 947465548)
    public THisPo(Long id, Long bid, Long cid, String cname, String bname,
            String bauthor, String bchao, Long tm, Integer pindex, Integer pstart,
            Integer pend, Integer ptype) {
        this.id = id;
        this.bid = bid;
        this.cid = cid;
        this.cname = cname;
        this.bname = bname;
        this.bauthor = bauthor;
        this.bchao = bchao;
        this.tm = tm;
        this.pindex = pindex;
        this.pstart = pstart;
        this.pend = pend;
        this.ptype = ptype;
    }
    @Generated(hash = 1104450443)
    public THisPo() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Long getBid() {
        return this.bid;
    }
    public void setBid(Long bid) {
        this.bid = bid;
    }
    public Long getCid() {
        return this.cid;
    }
    public void setCid(Long cid) {
        this.cid = cid;
    }
    public String getCname() {
        return this.cname;
    }
    public void setCname(String cname) {
        this.cname = cname;
    }
    public String getBname() {
        return this.bname;
    }
    public void setBname(String bname) {
        this.bname = bname;
    }
    public String getBauthor() {
        return this.bauthor;
    }
    public void setBauthor(String bauthor) {
        this.bauthor = bauthor;
    }
    public String getBchao() {
        return this.bchao;
    }
    public void setBchao(String bchao) {
        this.bchao = bchao;
    }
    public Long getTm() {
        return this.tm;
    }
    public void setTm(Long tm) {
        this.tm = tm;
    }
    public Integer getPindex() {
        return this.pindex;
    }
    public void setPindex(Integer pindex) {
        this.pindex = pindex;
    }
    public Integer getPstart() {
        return this.pstart;
    }
    public void setPstart(Integer pstart) {
        this.pstart = pstart;
    }
    public Integer getPend() {
        return this.pend;
    }
    public void setPend(Integer pend) {
        this.pend = pend;
    }
    public Integer getPtype() {
        return this.ptype;
    }
    public void setPtype(Integer ptype) {
        this.ptype = ptype;
    }





}
